package com.ruoyi.system.domain;

import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 中式八球比赛用户对象 billiards_game_eight_ball_member
 *
 * @author ruoyi
 * @date 2024-12-11
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class BilliardsGameEightBallMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long id;

    /** 比赛id */
    @Excel(name = "比赛id")
    private Long gameId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long memberId;

    /** 用户标签（0红方 1蓝方） */
    @Excel(name = "用户标签", readConverterExp = "0=红方,1=蓝方")
    private String tag;

    /** 得分 */
    @Excel(name = "得分")
    private Long score;

    /** 普胜 */
    @Excel(name = "普胜")
    private Long normalRun;

    /** 炸请 */
    @Excel(name = "炸请")
    private Long breakRun;

    /** 接清 */
    @Excel(name = "接清")
    private Long tableRun;

    /** 违规 */
    @Excel(name = "违规")
    private Long illegalBreak;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setGameId(Long gameId)
    {
        this.gameId = gameId;
    }

    public Long getGameId()
    {
        return gameId;
    }
    public void setMemberId(Long memberId)
    {
        this.memberId = memberId;
    }

    public Long getMemberId()
    {
        return memberId;
    }
    public void setTag(String tag)
    {
        this.tag = tag;
    }

    public String getTag()
    {
        return tag;
    }
    public void setScore(Long score)
    {
        this.score = score;
    }

    public Long getScore()
    {
        return score;
    }
    public void setBreakRun(Long breakRun)
    {
        this.breakRun = breakRun;
    }

    public Long getBreakRun()
    {
        return breakRun;
    }
    public void setTableRun(Long tableRun)
    {
        this.tableRun = tableRun;
    }

    public Long getTableRun()
    {
        return tableRun;
    }
    public void setIllegalBreak(Long illegalBreak)
    {
        this.illegalBreak = illegalBreak;
    }

    public Long getIllegalBreak()
    {
        return illegalBreak;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gameId", getGameId())
            .append("memberId", getMemberId())
            .append("tag", getTag())
            .append("score", getScore())
            .append("breakRun", getBreakRun())
            .append("tableRun", getTableRun())
            .append("illegalBreak", getIllegalBreak())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
